<div class="bjui-pageContent">
	<div class="pageFormContent" style="margin: 1px;" data-layout-h="0">
	
                
		<ul class="nav nav-tabs" role="tablist">
			<li class="active">
				<a href="#cust" role="tab" data-toggle="tab">基本信息</a>
			</li>
		 	<li>
				<a href='#action_log' role='tab' data-toggle='tab'>最近行为日志</a>
			</li>
			<!--<li>
				<a href='#custgd' role='tab' data-toggle='tab'>扩展信息2</a>
			</li>-->
		</ul>
		<div class="tab-content">
			<div class="tab-pane fade active in" id="cust">
				<table class="table table-bordered table-striped table-hover">
					<tbody>
						<tr>
							<td>
								<label for='id_input' class='control-label x85'>UID:</label>
								{$data.id}
							</td>
							<td>
								<label for='title_input' class='control-label x85'>账号:</label>
								{$data.account}
							</td>
						</tr>
						<tr>
							<td>
								<label for='dizhi_input' class='control-label x85'>邮箱:</label>
								{$data.email}
							</td>
							<td>
								<label for='fenlei_input' class='control-label x85'>电话:</label>
								{$data.mobile}
							</td>
						</tr>
						<tr>
							<td>
								<label for='dizhi_input' class='control-label x85'>账户余额:</label>
								{$data.balance}
							</td>
							
						</tr>
					</tbody>
				</table>
			</div>

			{php} $log = $data->logs()->limit(10)->order('create_time DESC')->select();{/php}
			<div class='tab-pane fade' id='action_log'>
				 <table class='table table-bordered table-striped table-hover'>
					<thead>
						<tr>
							<th>ID</th>
							<th>行为名称</th>
							<th>备注</th>
							<th>创建时间</th>
						</tr>
					</thead>
					<tbody>
					
					{volist name='log' id='vo'}
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo->action->title}</td>
							<td>{$vo->remark}</td>
							<td>{$vo->create_time}</td>
						</tr>
						{/volist}
					</tbody>
				</table> 
			</div>
			<div class='tab-pane fade' id='hetong'>
				<!-- <table class='table table-bordered table-striped table-hover'>
					<thead>
						<tr>
							<th>ID</th>
							<th>签约日期</th>
							<th height=30>客户名称</th>
							<th height=30>联系人</th>
							<th height=30>联系电话</th>
							<th>合同金额</th>
							<th>业务员</th>
							<th>添加人</th>
							<th>到期日期</th>
							<th>更新时间</th>
							<th>详细</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>3</td>
							<td>2015-03-06</td>
							<td>腾讯公司</td>
							<td></td>
							<td></td>
							<td>30150</td>
							<td>陈高明</td>
							<td>陈高明</td>
							<td>2015-05-06</td>
							<td>2015-03-06</td>
							<td>
								<a
									href='/thinkphp3.23xcrm/index.php/home/hetong/view/id/3/navTabId/Cust'
									data-toggle='dialog' data-width='800' data-height='500'
									data-id='dialog-maskhetong' data-mask='true'>详细</a>
							</td>
						</tr>
					</tbody>
				</table> -->
			</div>

		</div>
	</div>
<!-- Tabs -->
           
</div>

<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">&nbsp;关&nbsp;闭&nbsp;</button></li>
    </ul>
</div>